import request from '@/utils/request';

export function getSearchAPI(q: string) {
  return request({
    url: '/v1_0/suggestion',
    params: { q },
  });
}

export function getSearchResultAPI({ page = 1, per_page = 10, q = '' }) {
  return request({
    url: '/v1_0/search',
    params: { q },
  });
}
